package com.sleepapp.vo;

import lombok.AllArgsConstructor;
import lombok.Data;

/**
 * @author ziluxike
 * @since 2024/7/23 下午1:15
 */
@Data
@AllArgsConstructor
public class PageQueryInfo<T> {
    /**
     * 数据集
     */
    private T records;
    /**
     * 总条数
     */
    private Long total;


    public static <T> PageQueryInfo<T> of(T records, Long total) {
        return new PageQueryInfo<>(records, total);
    }
}
